home *** CD-ROM | disk | FTP | other *** search
- public class Engine implements Runnable {
- private Screen scr;
- private boolean stopped = true;
-
- public Engine(Screen var1) {
- this.scr = var1;
-
- try {
- Thread.sleep(100L);
- } catch (Exception var3) {
- }
-
- }
-
- public void start() {
- Thread var1 = new Thread(this);
- var1.start();
- }
-
- public void stop() {
- this.stopped = true;
- }
-
- public void run() {
- this.scr.loadShit();
- this.stopped = false;
-
- while(!this.stopped) {
- if (!this.scr.loading) {
- this.scr.repaint();
- this.scr.serviceRepaints();
- Thread.yield();
- }
- }
-
- }
- }
-